package com.helei.springcloud.controller;

import com.helei.springcloud.entity.Resp;
import com.helei.springcloud.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author helei
 * @description OrderFeignController
 * @date 2020/8/25 17:08
 */
@RestController
public class OrderFeignController {
    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping("/payment/get")
    public Resp aa(Integer id) {

        return Resp.getNew().success( paymentFeignService.find(id));
    }
    @GetMapping("/payment/Timeout")
    public Resp paymentFeignTimeout() {
        return Resp.getNew().success( paymentFeignService.paymentFeignTimeout());
    }

}
